#include <stdio.h>

int reverse(int n)
{
	int r=0;
	while (n){
		r = r*10+ n%10;
		n /=10;
	}
	return r;
}

int isPalindrome(int n)
{
	if (n == reverse(n))return 1;
	else return 0;
}

int main()
{
	int i;
	for (i=11; i<10000; i++) {
		while () {
			if (isPalindrome(i+reverse(i)))break;
		}
		
	}
}
